/*
 * @Author: cl
 * @Description:
 * @Date: 2023-04-07 10:23:48
 * @LastEditTime: 2023-04-12 17:28:58
 * @FilePath: \jsnode\nestjs\naota\src\tiger\dto\create-tiger.dto.ts
 * @LastEditors: cl
 */
import { IsNotEmpty, IsString } from 'class-validator'
import { Son } from '../entities/son.entity'
export class CreateTigerDto {
  @IsNotEmpty({
    message: '哥，我叫啥?',
  })
  @IsString({
    message: 'name必须是字符串类型',
  })
  name: string

  @IsNotEmpty({
    message: '哥，我多少岁啊',
  })
  age: number

  sex: string

  sons: Son[]
}
